//按时间计算预约费用
var BonusSystem = Java.type('com.javafactroy.kunlong.jsengine.BonusSystem');

//var math = MathUtil.getInstance();
/**
 * 预约按时长计费
 * @param {计} params
 * @param {*} r
 */
function calFee(param, bsParam, result) {

    var seconds = 60000
    var minutes = Math.ceil(seconds / 60000);

    var num = Math.ceil(minutes / 1);
    result.setAmount(num);
    result.setRemark(param.getRemark());

    BonusSystem.test();
    result.setRemark(param.getRemark() + BonusSystem.test());

}

function toUpperCase(s) {
    return s.toUpperCase()
}


function min() {
    var arr = [2, 3, -5, 15, 7];
    return Math.min.apply(null, arr)
}